﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace ProjectTask
{
    public partial class FrmTaskDealList : Form
    {
        ProjectCommon.ClassCommon cc;

        public FrmTaskDealList(ProjectCommon.ClassCommon aClassCommon,string sJobTaskID)
        {
            InitializeComponent();
            cc = aClassCommon;
            string sql = @"select * from TaskDeal where tbJobTaskID='" + sJobTaskID + "'";
            SqlDataAdapter sda = new SqlDataAdapter(sql, cc.scKengee_IT_MIS);
            DataTable dtTaskDeal=new DataTable();
            cc.scKengee_IT_MIS.Open();
            sda.Fill(dtTaskDeal);
            cc.scKengee_IT_MIS.Close();
            sda.Dispose();
            dataGridView1.DataSource = dtTaskDeal;
            ProjectCommon.ClassCommon.SetdgvColumnName(cc.scKengee_IT_MIS, dataGridView1, "TaskDeal");
        }
    }
}
